#include "defines.h"
#include "kozos.h"
#include "nicdrv.h"
#include "ni.h"
#include "arp.h"
#include "ip.h"
#include "icmp.h"
#include "udp.h"
#include "ping.h"
#include "netmain.h"
#include "ntimer.h"

void net_main(void)
{
    nicdrv_init();
    ni_init();
    arp_init();
    ip_init();
    icmp_init();
    udp_init();
    ping_init();

    kz_run(nicdrv_main, "nicdrv", 8, 0x100, 0, NULL);
    kz_run(ntimer_main, "ntimer", 10, 0x100, 0, NULL);
    kz_run(arp_main, "arp", 10, 0x100, 0, NULL);
    kz_run(ni_main, "ni", 10, 0x100, 0, NULL);
    kz_run(ip_main, "ip", 10, 0x100, 0, NULL);
    kz_run(icmp_main, "icmp", 10, 0x100, 0, NULL);
    kz_run(udp_main, "udp", 10, 0x100, 0, NULL);
    kz_run(ping_main, "ping", 11, 0x100, 0, NULL);
}
